package com.pateo.springcloudgoods.service;

import com.github.pagehelper.PageInfo;
import com.pateo.springcloudgoods.dao.model.auto.AutoGoods;
import com.pateo.springcloudgoods.web.response.PageResponse;

import java.util.List;

public interface GoodsService {

    int insertGoods(AutoGoods goods);

    int deleteGoods(Long id);

    int updateGoods(AutoGoods goods);

    List<AutoGoods> selectAll();

    PageInfo<AutoGoods> selectPage(Integer pageNum, Integer pageSize );

    AutoGoods selectGoodsById(Long id);

}
